<?php

class Model_raport extends Model {

    function Model_raport() {
        parent::Model();
    }


    function getNumerMod($filtru, $user = "") {
        $query = $this->db->query("select * from persons where 1=1 $filtru and  modify_by='" . $user . "' ");
        return $query->num_rows();
    }

    function getNumerCreate($filtru, $user = "") {
        $query = $this->db->query("select * from persons where 1=1 $filtru and create_by='" . $user . "' ");
        return $query->num_rows();
    }

    function getNumerTotal($filtru, $user = "") {
        $query = $this->db->query("select * from persons where 1=1  $filtru   ");
        return $query->num_rows();
    }

}
/* End of file model_raport.php */
/* Location: ./system/application/models/model_raport.php */